package com.baidu.synthesis.config.baidu;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author liuzhiqiang
 */
@Configuration
public class BaiduConfig {

    @Value("${baidu.appId}")
    public static Integer appId;
    @Value("${baidu.apiKey}")
    public static String apiKey;
    @Value("${baidu.secretKey}")
    public static String secretKey;

    @Value("${baidu.appId}")
    public void setAppId(Integer appId) {
        BaiduConfig.appId = appId;
    }

    @Value("${baidu.apiKey}")
    public void setApiKey(String apiKey) {
        BaiduConfig.apiKey = apiKey;
    }

    @Value("${baidu.secretKey}")
    public void setSecretKey(String secretKey) {
        BaiduConfig.secretKey = secretKey;
    }
}
